/* -------------------------------------- 

     Cherrypy webapp skeleton frontend

     License: LGPL
     Authors: saaj (mail@saaj.me)

   -------------------------------------- */

/*

#asset(webapp/*)

*/

/**
 * The main application class
 */
qx.Class.define("webapp.Application", {
  
  extend : qx.application.Standalone,

  members : {
    
    main : function()
    {
      this.base(arguments);

      if(qx.core.Environment.get("qx.debug"))
      {
        qx.log.appender.Native;
        qx.log.appender.Console;
      }
      
      var layout = new webapp.view.Layout();
      layout.setLeftWidget(new webapp.controller.Note().createWidget());
      layout.setRightWidget(new webapp.controller.File().createWidget());
      
      qx.core.Init.getApplication().getRoot().add(layout, {edge : 0});
    }
    
  }
  
});